{% extends "base_restau.html" %}
{% load dajaxice_templatetags %}
{% load i18n %}

	{% block header %}
		{% dajaxice_js_import %}
		<script type="text/javascript" src="{{STATIC_URL}}javascript/jquery.js"></script>
		<script type="text/javascript" src="{{STATIC_URL}}javascript/script_formset.js"></script>
		<script type="text/javascript" src="{{STATIC_URL}}javascript/script_sondage.js"></script>
		<link type="text/css" href="{{STATIC_URL}}star/jquery.rating.css" rel="Stylesheet"/>
		<script type="text/javascript" src="{{STATIC_URL}}star/jquery.rating.js"></script>
		<script type="text/javascript" src="{{STATIC_URL}}jquery.blockUI.js"></script>
		<script type="text/javascript" src="{{STATIC_URL}}javascript/script_attente.js"></script>
		<script type="text/javascript" src="{{STATIC_URL}}jquery.dajax.core.js"></script>
		<script type="text/javascript">
		    var invit_id = {{ invit_id }}
		</script>
	{% endblock %}
	

	{% block titre %}{% trans "Mon choix :" %}{% endblock %}

	{% block menu %}	
		<ul id="navigation">
				  <li> <img src="{{STATIC_URL}}images/26.png" alt=""/>{% trans "Civilité" %}</li>
				  <li> <img src="{{STATIC_URL}}images/27.png" alt=""/>{% trans "Invités" %}</li>
				  <li> <img src="{{STATIC_URL}}images/28.png" alt=""/>{% trans "Goûts" %}</li>
				  <li> <img src="{{STATIC_URL}}images/24.png" alt=""/>{% trans "Réponse" %}</li>
				  <li> <img src="{{STATIC_URL}}images/30.png" alt=""/>{% trans "Résultat" %}</li>
		</ul>
	{% endblock %}

	{% block content %}
		<br>
		{% trans "Par exemple, si vous voulez mangez chinois, pas loin du bureau et pas trop cher voilà comment vous devriez remplir ce sondage" %} :
		<form action="" method="POST">
			{% csrf_token %}
			{% trans "Où serez-vous avant d'aller au restaurant ?" %} : {{ form2.adresse }}
			{{ formset.management_form }}
	    		<div>
	    			<table>
	    				{% for form in formset.forms %}
		      			<tr class="item">
							<td>{{ form.type }}</td>
							<td>{{ form.detail }}</td>
							<td class="plugin_etoiles">{{ form.nbre_etoile }}</td>
							<td><p><a class="delete" title="Supprimer cet élément" href="#"><img src="{{ STATIC_URL }}images/delete.png"></img></a></p></td>
						</tr>
	    				{% endfor %}
					</table>
	    		</div>
	    	<p><a id="add" title="Ajouter un élément" href="#"><img src="{{ STATIC_URL }}images/add.png"></img>{% trans "Ajouter un élément" %}</a></p>
			<caption ALIGN=bottom><input type=submit class=submit value=Valider></caption>
		</form>
	{% endblock %}
